#ifndef LAN2LINEEDIT_H
#define LAN2LINEEDIT_H

#include <QLineEdit>
#include <QObject>
#include <QProxyStyle>
#include <QWidget>

#include "lan2core.h"
LAN2STA
class HideCursorStyle:public QProxyStyle{


    // QStyle interface
public:
    int pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const{
        if(metric==QStyle::PM_TextCursorWidth){
            return 0;

        return QProxyStyle::pixelMetric(metric,option,widget);
        }
    }
};

class Lan2CalLineEdit : public QLineEdit
{
    Q_OBJECT
public:
    Lan2CalLineEdit(int width,int height,QWidget *parent = nullptr);
    void method_setText(const QString& txt);

signals:
    void sign_hhclick();
    void sign_mmclick();
    void sign_ssclick();

    // QObject interface
public:
    bool eventFilter(QObject *watched, QEvent *event);
};

LAN2END
#endif // LAN2LINEEDIT_H
